module
    .directive('uploaderGallery', ['Config', 'Modal', function(Config, Modal){
        return {
            restrict: "A",
            scope: {
                ngModel: '=',
                callback: '=',
                quantity: '@'
            },
            link: function (scope, element, attrs){
                element.on('click', function(){
                    Modal.open(scope);
                })
            }
        }
    }]);
